﻿<div class="modal-body">
    <form class="form-horizontal" name="addSubmissionForm"
          novalidate>
        <fieldset>
            <legend>Добави решение</legend>
            <div class="form-group">
                <label class="col-md-2 control-label"
                       for="taskDescription">Описание на задачата</label>

                <div class="col-md-10">
                    <textarea class="form-control"
                              id="taskDescription"
                              placeholder="Source"
                              disabled
                              rows="5"
                              ng-model="vm.task.description" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label"
                       for="sourceCode">Сорс Код</label>

                <div class="col-md-10">
                    <textarea class="form-control"
                              id="sourceCode"
                              placeholder="Копирайте сорс кода си тук"
                              rows="20"
                              ng-model="vm.sourceCode" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-4 col-md-offset-2">
                    <span>
                        <button class="btn btn-primary"
                                style="width: 80px; margin-right: 10px"
                                ng-click="vm.addSubmission(productForm.$valid)">
                            Добави
                        </button>
                    </span>
                    <span>
                        <button class="btn btn-default"
                                style="width: 70px"
                                ng-click="vm.cancel()">
                            Откажи
                        </button>
                    </span>
                </div>
            </div>

        </fieldset>
    </form>
</div>
